<!DOCTYPE html>
<html>
 	<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>绑定成功</title>
  <meta name="description" content="这是一个 index 页面">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="assets/css/amazeui.min.css" />
  <link rel="stylesheet" href="assets/css/admin.css">
  <link rel="stylesheet" href="assets/css/app.css">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
  <script type="text/javascript" src="assets/js/jquery.min.js" ></script>
  <style> 
   body{ text-align:center} 
  </style> 
</head>

<body data-type="login">

  <div class="am-g myapp-login">
	<div class="myapp-login-logo-block  tpl-login-max">
		<div class="myapp-login-logo-text">
			<div class="myapp-login-logo-text">
				<span>绑定成功</span> 
				
			</div>
		</div>

		<div class="login-font">
			<i>binding success</i> 
		</div>
		<div class="am-u-sm-10 login-am-center">
				<fieldset>
					
				<div class="tpl-portlet-components" style="height: 150px;background: #ECECEC;">
                    <div>
                        <h3><span class="close" data-close="note">绑定的课堂：</span></h3>
                        <p id="lesson_name"></p>
                    </div>
                    
                </div>
                
                <div class="tpl-portlet-components" style="height: 150px;background: #ECECEC;">
                    <div>
                        <h3><span class="close" data-close="note">绑定的微信号：</span></h3>
                        <p id="wechat_num"></p>
                    </div>
                   
                </div>
					
				<div>    
                    <font color="#53D192" size="2">
                    	<h6>PS:
                        	该微信号是用来接收课堂信息推送的，如果不是常用微信号，请使用常用的进行重新绑定，以免接收不到推送
                        </h6></font>   
                </div>
                
				</fieldset>
				
		</div>
	</div>
</div>

<script>
	 $.ajax({
			type:"post",
			url:"/bindSuccess",
                  contentType:"application/json;charset=utf-8",
			data:"",
			success:function(data) {
				getBindingInfo(data);
			}}
			); 
			
			function getBindingInfo(data){
				//var  datac=  eval("("+data+")");
				$.each(data,function(i,item){
					$("#lesson_name").text(item.info);
					$("#wechat_num").text(item.wechat_num);
					
					//alert(item.introduction);
				});
				
			}  
	
	
</script>

  <script src="assets/js/jquery.min.js"></script>
  <script src="assets/js/amazeui.min.js"></script>
  <script src="assets/js/app.js"></script>
</body>
</html>
